<template>
	<view class="export-table">
		<uni-list>
			<uni-grid :col="headers.length">
				<uni-grid-item v-for="header in headers" :key="header">{{header}}</uni-grid-item>
			</uni-grid>
		</uni-list>
		<button type="default" @click="exportTable">导出表格</button>
	</view>
</template>

<script>
	export default {
		name:"ExportTable",
		data() {
			return {
				headers:['姓名','年龄','性别'],
				data:[
					['张三',20,'男']
				]
				
			};
		},
		methods:{
			exportTable(){
				// const 
			}
		}
	}
</script>

<style lang="scss">

</style>